/*
 * @Description:
 * @Author: Rfan
 * @Date: 2021-10-29 22:59:41
 * @LastEditTime: 2022-05-27 14:30:09
 */

import { observable, action } from 'mobx';

// 观察者
const arcTypeStore = observable({
  atLevelList: [
    { id: 0, name: '电子文件' },
    { id: 1, name: '文件' },
    { id: 2, name: '案卷/盒' },
    { id: 3, name: '项目' }
  ],
  atTypeList: [
    { value: 0, name: '文件库', coed: 'FDT' },
    { value: 1, name: '档案库', code: 'ADT' },
    { value: 2, name: '综合库', code: 'QDT' },
    { value: 3, name: '编研库', code: 'CDT' }
    // { value: 4, name: '代码库', code: 'CODE' }
  ]
});

// 方法
arcTypeStore.setAtType = action((list) => {
  arcTypeStore.atTypeList = list;
});

export default arcTypeStore;
